package com.wanmait.schedule.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.time.LocalDateTime;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 教室表
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Accessors(chain = true)
public class Classroom {

    /**
     * 教室id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 教室名
     */
    private String name;

    /**
     * 教室容量
     */
    private Integer capacity;

    /**
     * 添加时间
     */
    private LocalDateTime inputTime;

    /**
     * 录入人
     */
    private Integer inputId;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 教室说明
     */
    private String info;

    /**
     * 教室类型id
     */
    private Integer classroomTypeId;

    /**
     * 教室状态 1正常 0异常
     */
    private Boolean normal;

    /**
     * 0删除
     */
    @TableLogic
    private Boolean enable;

    @TableField(exist = false)
    private ClassroomType classroomType;

    @TableField(exist = false)
    private Teacher teacher;
}
